<?php
namespace adminmatrix\admin\annotation;

use Attribute;

#[Attribute(Attribute::TARGET_METHOD)]
class Validate
{
    public function __construct(
        public string $name,
        public string $method = 'GET',
        public string $scene = '',
        public array $rules = [],
        public array $message = [],
        public ?object $ref = null,
    ){}
}